import React from 'react'
import {HashRouter as HRouter, Route, Link} from 'react-router-dom'
import Main from "./Main";
import Topic from "../router1/Topic";
import About from "../router1/About";
import Home from './Home'
export default class JustRouter extends React.Component{

    render(){
        return (
            <HRouter>
                <Home>
                    <Route  path="/main" render={()=>
                        <Main>
                            <Route path="/main/a" component={About}></Route>
                        </Main>
                    }>
                    </Route>
                    <Route path="/about" component={About}></Route>
                    <Route path="/topic" component={Topic}></Route>
                    <Route path="/main/c" component={Topic}></Route>

                </Home>
            </HRouter>
        );
    }
}
